package com.sdb.drug.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sdb.common.annotation.Excel;
import com.sdb.common.core.domain.BaseEntity;

/**
 * 药品库存对象 td_drug
 * 
 * @author yyh
 * @date 2025-02-05
 */
public class TdDrug extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**就诊号**/
    private String clinicId;

    /** 药品编码 */
    @Excel(name = "药品编码")
    private Long code;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String name;

    /** 药品单价 */
    @Excel(name = "药品单价")
    private Double price;

    /** 药品进价 */
    @Excel(name = "药品进价")
    private Double buyprice;

    /** 库存 */
    @Excel(name = "库存")
    private Long count;

    public void setCode(Long code) 
    {
        this.code = code;
    }

    public Long getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(Double price)
    {
        this.price = price;
    }

    public Double getPrice()
    {
        return price;
    }
    public void setBuyprice(Double buyprice)
    {
        this.buyprice = buyprice;
    }

    public Double getBuyprice()
    {
        return buyprice;
    }
    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }

    public String getClinicId() {
        return clinicId;
    }

    public void setClinicId(String clinicId) {
        this.clinicId = clinicId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("code", getCode())
            .append("name", getName())
            .append("price", getPrice())
            .append("buyprice", getBuyprice())
            .append("count", getCount())
                .append("clinicId", getClinicId())
            .toString();
    }
}
